<!DOCTYPE html>
<html>
    <head>
        <script src="js/vue.js"></script>
    </head>
    <body>
        <div id="app"></div>
        <script>
            Vue.mixin({
                created(){
                    //console.log(this);
                    console.log('这是通过混入的created钩子函数')
                    var myOption = this.$option.myOption
                    if (myOption) {
                        console.log(myOption.toUpperCase())
                    }
                },
                data:{
                    msg:'test'
                }
            });

            var vm = new Vue({
                created(){
                    console.log('这是Vue实例当中的created钩子函数');
                },
                myOption:'hello vue!',
                el:'#app'
            });
        </script>
    </body>
</html>